package cn.licoy.wdog.core.service.hospital;

import cn.licoy.wdog.core.dto.SplitPageDTO;
import cn.licoy.wdog.core.dto.hospitalUser.DetectionInfoDto;
import cn.licoy.wdog.core.dto.hospitalUser.PageDto;
import cn.licoy.wdog.core.entity.hospital.DetectionInfo;
import cn.licoy.wdog.core.entity.hospital.HospitalUser;
import com.baomidou.mybatisplus.service.IService;
import com.baomidou.mybatisplus.plugins.Page;

import java.util.List;

/**
 * @author Sunne
 * Create time 2018/6/22 17:27
 * @return null
 **/
public interface DetectionInfoService extends IService<DetectionInfo> {
    void add(DetectionInfoDto detectionInfoDto,String id);

    Page<DetectionInfo> selectToCondition(String where,String field,Integer currage,Integer pagesize,String id);

    Page<DetectionInfo> selectToDate(long startTime,long endTime,Integer currage,Integer pagesize,String id);

    Page<DetectionInfo> selectToAll(PageDto pageDto,String userid);

    List<String> findReginByUsername(HospitalUser user);
}